import * as ElIconModules from '@element-plus/icons-vue'

function transElIconName(iconName){
	return 'icon' + iconName.replace(/[A-Z]/g, (match) => '-' + match.toLowerCase())
}

export function loadElementPlusIcons(app){
	for (let iconName in ElIconModules) {
		app.component(transElIconName(iconName),ElIconModules[iconName])
	}
}